﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System.Diagnostics;

namespace TomAndJerry
{
   public class Matches:ItemSprite
    {
       Texture2D headTexture;
        public Matches(Texture2D texture, Texture2D head)
            : base(texture)
        {
            headTexture = head;
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            if (isActive)
            {
                base.Draw(spriteBatch);
                spriteBatch.Draw(headTexture, this.infor.Pos2, null, Color.White, infor.Angle, Vector2.Zero, Vector2.One, SpriteEffects.None, 0f);
                Debug.WriteLine(infor.Pos2.X+"*************"+infor.Pos2.Y);
            }
        }
    }
}
